#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QMessageBox>
#include <QJsonObject>
#include <QJsonDocument>
#include "player.h"
#include <QDebug>
#include <QHostAddress>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

#define IP  "8.130.108.252"
#define PORT    8081

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_clicked();
    void server_reply_slot();

private:
    void bind_operation();
private:
    Ui::Widget *ui;
    QTcpSocket *socket;
};
#endif // WIDGET_H
